---
--- Created by mick.
--- DateTime: 17-11-24 上午10:47
---

return [[
<script>
layui.use('layer', function(){
  var layer = layui.layer;
  $("#writepaper").click(function(){
      layer.open({
        title: '提醒',
        offset: 't',
        content: '人比较懒，还在用postman上传'
      });
  });

});

</script>
<script>
	layui.use('element', function(){
	  var element = layui.element;


	});


	$("#search_c").blur(function(event) {
		$(this).animate({width: '326px'}, 100);
        $(this).css({background:"#f7f8fa"});
        val = $(this).val();
        if(val.length>0){
            $.post('/list/index', {search:val,page: '1',size:10}, function(data, textStatus, xhr) {
                va_page = 1;
                va_search_str = val;
                data = $.parseJSON(data)
                cleft = $(".cleft")
                $("#cleft-bar").nextAll().remove();
                for (var i = 0; i<data.length; i++) {
                    cleft.append('<article class="article-item"><section style="color:#8590a6;line-height:1;font-size:15px;margin-bottom:14px;">来自:'+data[i]["class"]+'</section><section><ul><li style="width:35px;height:35px;display:inline-block;border-radius:10px;overflow:hidden;"><img style="width:35px;margin-right:5px;" src="/static/head.jpg" alt="" style="width:35px;"></li><li style="color:inherit;font-weight:600;font-size:15px;">Mick,</li><li style="white-space:nowrap;word-break:break-word;font-size:14px;color:#262626;content: \'\FF0C\'">hi</li></ul></section><section style="color:inherit;font-size:18px;font-weight: 600;line-height: 1.6;margin-top:14px;">'+data[i]["title"]+'</section><section class="article_content">   <div style="position:relative;display:block;width:190px;height:105px;margin-top:-2px;margin-right:18px;margin-bottom:4px;overflow:hidden;background-position:50%;background-size:cover;float:left;"><img style="width:100%;position:absolute;" src="'+data[i]["image"]+'" alt=""></div>  <div style="display:block;min-height:100px;max-width:654px;min-width:0px;height:105px;margin-top:-2px;margin-right:18px;margin-bottom:4px;overflow:hidden;">							<b>简评</b>：'+data[i]["intro"]+'…<a href="/index/detail?id='+data[i]["id"]+'"><button style="background:white;color:#33a7f7;margin-bottom:2px;position:relative;top:-2px;" class="layui-btn layui-btn-sm">查看全部<i class="layui-icon">&#xe602;</i></button></a></div></section><section style="margin-top:5px;"><button class="layui-btn layui-btn-sm layui-btn-primary" style="border:none;"><i class="layui-icon">&#xe618;</i>有用</button><button class="layui-btn layui-btn-sm layui-btn-primary" style="border:none;"><i class="layui-icon">&#xe60a;</i>浏览</button></section></article>')
                }
            });
	    }

	});

	$("#search_c").focus(function(event) {
		$(this).animate({width: '400px'}, 100);
		$(this).css({background:"#ffffff"});
	});

</script>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?8959cb6263237cbbfc4c582013c849b5";
  var s = document.getElementsByTagName("script")[0];
  s.parentNode.insertBefore(hm, s);
})();
</script>

</html>
]]